<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="userRole_addUI.action"
				mask="true" rel="userRole_addUI" target="dialog"
				><span>添加</span></a></li>
				<li class="line">line</li>
				<li><a class="edit"
				href="userRole_editUI.action?usrId={usr_id}"
				mask="true" rel="userRole_editUI" target="dialog"><span>修改</span></a></li>
				<li class="line">line</li>
			<li><a class="delete"
				href="userRole_delete.action?usrId={usr_id}"
				target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>

		</ul>
	</div>
	<table class="table" width="100%" layoutH="75">
		<thead>
			<tr>
				<th>序号</th>
				<th>角色名称</th>
				<th>角色编号</th>
				<th>数据权限</th>
				<th>所属用户组</th>

			</tr>
		</thead>
		<tbody>
			<c:forEach items="${recordList}" var="role" varStatus="countStatus">
				<tr target="usr_id" rel="${role.usrId}">
					<td>${(countStatus.index+1) + (currentPage-1) * numPerPage}</td>
					<td>${role.usrName}</td>
					<td>${role.usrCode}</td>
					<td>
						<c:choose>
						   <c:when test="${role.usrDataRange==0}">
						        全部数据
						   </c:when>
						   <c:when test="${role.usrDataRange==1}">
						        部门数据
						   </c:when>
						   <c:when test="${role.usrDataRange==2}">
						        个人数据
						   </c:when>
						</c:choose>
					</td>
					<td>${role.sysUserGroup.usgName}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>